package org.example.test_rocketmq;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "testTopic001", consumerGroup = "cg003")
public class MessageReceiver3 implements RocketMQListener<String> {

    @Override
    public void onMessage(String msg) {
        System.out.println("Receiver3：" + msg);
        //throw new RuntimeException("AAA");
    }

}
